<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script type="text/javascript">
    window.onload = function () {
        //当前时间
        now = new Date();
        current_time =  now.getHours()*3600+now.getMinutes()*60+now.getSeconds();
        week = now.getDay();
        //周末营业前开始时间和结束时间
        weekend_before_start1 = "07:00:00";
        weekend_before_end1 = "14:00:59";
        //周末营业中开始时间和结束时间
        weekend_zh_start1 = "09:00:00";
        weekend_zh_end1 = "23:30:59";
        //工作日营业中开始时间和结束时间
        zh_start1 = "18:00:00";
        zh_end1 = "23:30:59";
        //工作日营业前开始时间和结束时间
        before_start1 = "07:00:00";
        before_end1 = "20:00:59";

        weekend_before_start = parseInt(weekend_before_start1.split(":")[0])*3600+parseInt(weekend_before_start1.split(":")[1])*60+parseInt(weekend_before_start1.split(":")[2]);
        weekend_before_end = parseInt(weekend_before_end1.split(":")[0])*3600+parseInt(weekend_before_end1.split(":")[1])*60+parseInt(weekend_before_end1.split(":")[2]);

        weekend_zh_start = parseInt(weekend_zh_start1.split(":")[0])*3600+parseInt(weekend_zh_start1.split(":")[1])*60+parseInt(weekend_zh_start1.split(":")[2]);
        weekend_zh_end = parseInt(weekend_zh_end1.split(":")[0])*3600+parseInt(weekend_zh_end1.split(":")[1])*60+parseInt(weekend_zh_end1.split(":")[2]);

        zh_start = parseInt(zh_start1.split(":")[0])*3600+parseInt(zh_start1.split(":")[1])*60+parseInt(zh_start1.split(":")[2]);
        zh_end = parseInt(zh_end1.split(":")[0])*3600+parseInt(zh_end1.split(":")[1])*60+parseInt(zh_end1.split(":")[2]);

        before_start = parseInt(before_start1.split(":")[0])*3600+parseInt(before_start1.split(":")[1])*60+parseInt(before_start1.split(":")[2]);
        before_end = parseInt(before_end1.split(":")[0])*3600+parseInt(before_end1.split(":")[1])*60+parseInt(before_end1.split(":")[2]);
        
        if (week=='0'||week=='6') {
            if (current_time>weekend_zh_start&&weekend_zh_end>current_time) {
                $("#a2").show();
                $("#a4").show();
            }
            if (current_time>weekend_before_start&&weekend_before_end>current_time) {
                $("#a1").show();
                $("#a3").show();
            }
        }else
        {
            if (current_time>before_start&&before_end>current_time) {
                $("#a1").show();
                $("#a3").show();
            }
            if (current_time>zh_start&&zh_end>current_time) {
                $("#a2").show();
                $("#a4").show();
            }
        }
    }
</script>
<div>
    <a href="javascript:history.back(-1)" class="btn btn-primary btn-lg active" role="button" style="margin-bottom: 30px;"><首页</a>
</div>
<div class="box">
    <div class="box-header">
        <p style="font-size: 30px;font-weight: bolder;text-align: center;">七彩校区</p>
    </div>
    <div class="box-body" style="padding-bottom: 30px;">
        <div class="col-xs-4">
            <a class="btn btn-primary" href="/admin/full_xc_ready?compus=2&type=1&xc_status={{$xc_status['qc_1']}}" style="font-size: 30px;display: none;" id="a1">营业前
                <p style="font-size: 14px;color: yellow;margin-top: 10px;">{{$xc_status['qc_1']}}</p>
            </a>
        </div>
        <div class="col-xs-2"></div>
        <div class="col-xs-4">
            <a class="btn btn-danger" href="/admin/full_xc_ready?compus=2&type=2&xc_status={{$xc_status['qc_2']}}" style="font-size: 30px;display: none;" id="a2">中&nbsp;&nbsp;&nbsp;后
                <p style="font-size: 14px;color: yellow;margin-top: 10px;">{{$xc_status['qc_2']}}</p>
            </a>
            
        </div>
        <div class="col-xs-1"></div>
    </div>
</div>

<div class="box">
    <div class="box-header">
        <p style="font-size: 30px;font-weight: bolder;text-align: center;">C86校区</p>
    </div>
    <div class="box-body" style="padding-bottom: 30px;">
        <div class="col-xs-4">
            <a class="btn btn-success" href="/admin/full_xc_ready?compus=1&type=1&xc_status={{$xc_status['c86_1']}}" style="font-size: 30px;display: none;" id="a3">营业前
                <p style="font-size: 14px;color: yellow;margin-top: 10px;">{{$xc_status['c86_1']}}</p>
            </a>
        </div>
        <div class="col-xs-2"></div>
        <div class="col-xs-4">
            <a class="btn btn-info" href="/admin/full_xc_ready?compus=1&type=2&xc_status={{$xc_status['c86_2']}}" style="font-size: 30px;display: none;" id="a4">中&nbsp;&nbsp;&nbsp;后
                <p style="font-size: 14px;color: yellow;margin-top: 10px;">{{$xc_status['c86_2']}}</p>
            </a>
        </div>
        <div class="col-xs-1"></div>
    </div>
</div>
<div>
    <p>巡场须知：</p>
    <p>【营业前】</p>
    <p>可选时间：周一至周五19点前</p>
    <p>【中后】</p>
    <p>可选时间：次日03点前</p>
</div>